<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/common.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@ include file="/WEB-INF/jsp/common/importHead.jsp"%>
<%@ include file="/WEB-INF/jsp/common/importCommonCss.jsp"%>
</head>
<body>
	<%@ include file="/WEB-INF/jsp/common/navi.jsp" %>
	<div style="float: left;margin-left: 25px;" id="contentDiv">
		<script>
			document.getElementById("contentDiv").style.width = document.body.offsetWidth - 250 + "px";
		</script>
	
		<ul class="breadcrumb" style="margin-bottom: 5px;">
	      <li><a href="${basePath }/index">首页</a><span class="divider">/</span></li>
	      <li class="active">故障类型管理</li>
	  	</ul>
	  	
	  	<!-- 内容 -->
	  	
	  	<form action="${basePath }/repairType/list" method="post" id="searchForm">
			<ul class="nav nav-pills">
		      <li class="active"><a href="javascript:add();">新增故障类型</a></li>
		      <li style="float: right;"><a href="javascript:searchForm.reset();">重置</a></li>
		      <li style="float: right;"><a href="javascript:list(1);">查询</a></li>
		      <li style="float: right;"><input id="keyword" name="keyword" type="text" style="margin: 2px 10px 0 0;" placeholder="模糊查询故障类型" title="模糊查询故障类型" /></li>
		  	</ul>
		    <input name="pageNum" type="hidden" value="${page.current }" />
	  	</form>
	  	
	  	<table class="table table-hover">
		  <thead>
		    <tr class="success">
		      <th>故障类型</th>
		      <th width="250px">操作</th>
		    </tr>
		  </thead>
		  <tbody id="contentTBody">
		  	<%@ include file="/WEB-INF/jsp/repairType/contentTBody.jsp"%>
		  </tbody>
		</table>
		
		<div id="pagination">
		</div>
	</div>
	<div class="clearfix"></div>
	<%@ include file="/WEB-INF/jsp/common/importCommonJs.jsp"%>
	
	<script>
		// 定义参数
		var current = ${page.current};
		var pages = ${page.pages};
		var total = ${page.total};
		var pageSize = ${page.size};
		
		// 定义方法
		var list = function(page){
			console.warn("未实现list方法");
		};
		
		var add = function(){
			console.warn("未实现add方法");
		};
		
		var modify = function(seqId){
			console.warn("未实现modify方法");
		};
		
		var save = function(seqId){
			console.warn("未实现save方法");
		};
		
		var del = function(seqId){
			console.warn("未实现del方法");
		};
		
		var move = function(seqId){
			console.warn("未实现move方法");
		};
		
		var moveList = function(pageNum,seqId){
			console.warn("未实现moveList方法");
		};
		
		var moveData = function(oldSeqId,newSeqId){
			console.warn("未实现moveData方法");
		};
	</script>
	
	<script type="text/javascript" src="${basePath }/js/repairType.js"></script>
</body>
</html>